Release 10.1A: OpenEdge Data Management:
SQL Reference
Exact numeric data types
Exact numeric data types are used to represent the exact value of a number. This is the syntax for exact numeric data types:
TINYINTCorresponds to an integer value in the range –128 to +127 inclusive.
SMALLINTCorresponds to an integer value in the range of –32768 to +32767 inclusive.
INTEGERCorresponds to an integer value in the range of –2 ** 31 to 2 ** 31–1 inclusive.
NUMERIC | NUMBER [ ( precision [ , scale ] ) ]Corresponds to a number with the given precision (maximum number of digits) and scale (the number of digits to the right of the decimal point). By default,
NUMERICcolumns have a precision of 32 and a scale of 0. IfNUMERICcolumns omit the scale, the default scale is 0.The range of values for a
NUMERICtype column is-nto+nwherenis the largest number that can be represented with the specified precision and scale. If a value exceeds the precision of aNUMERICcolumn, SQL generates an overflow error. If a value exceeds the scale of aNUMERICcolumn, SQL rounds the value.
NUMERICtype columns cannot specify a negative scale or specify a scale larger than the precision.DECIMAL [ ( precision , scale ) ]Equivalent to type
NUMERIC.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |